package cn.edu.csust.cvs.management.exception;

public enum ErrorCode {

    AUDIO_VIDEO_DURATION_INCONSISTENT ("cvs-501","Audio duration cannot be greater than video duration"),

    FILE_DOES_NOT_EXIST("cvs-502","file does not exist"),

    ALREADY_SEGMENT("cvs-503","video has already segmented");

    private String errorCode;
    private String errorMsg;

    ErrorCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
